class GeAnEntity {
  final int? total;
  List<GeAnInfo>? rows;

  GeAnEntity({this.rows, this.total});

  factory GeAnEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<GeAnInfo> protocolList =
        (originList??[]).map((value) => GeAnInfo.fromJson(value)).toList();
    return GeAnEntity(rows: protocolList, total: json['total']);
  }
}

class GeAnInfo {
  GeAnBeanInfo? bean;
  GeAnCaptionInfo? caption;

  GeAnInfo({
    this.bean,
    this.caption,
  });

  GeAnInfo.fromJson(Map data) {
    bean = GeAnBeanInfo.fromJson(data['bean']);
    caption = GeAnCaptionInfo.fromJson(data['caption']);
  }
}

class GeAnBeanInfo {
  String? bedNo;
  String? reason;
  String? createdBy;
  String? createdDate;
  int? id;
  int? status;
  String? name;

  GeAnBeanInfo({
    this.bedNo,
    this.id,
    this.status,
    this.reason,
    this.createdBy,
    this.createdDate,
    this.name,
  });

  GeAnBeanInfo.fromJson(Map data) {
    bedNo = data['bedNo'];
    reason = data['reason'];
    createdBy = data['createdBy'];
    createdDate = data['createdDate'];
    name = data['name'];
    id = data['id'];
    status = data['status'];
  }
}

class GeAnCaptionInfo {
  String? customerElderId;
  String? createdBy;

  GeAnCaptionInfo({
    this.customerElderId,
    this.createdBy,
  });

  GeAnCaptionInfo.fromJson(Map data) {
    customerElderId = data['customerElderId'];
    createdBy = data['createdBy'];
  }
}
